﻿@*Kong Yang
Internet Catalog*@

@{
    ViewBag.Title = "FullList";
}

@{
    InternetCatalog.Models.MeMeDBContext db = new InternetCatalog.Models.MeMeDBContext();
        //Database1Entities db = new test2.Database1Entities();
}
@using (Html.BeginForm())
{
    <table border="1">
        <thead>
            <tr>
                <th>Title</th>
                <th>ImageURL</th>
                <th>Discription</th>
                <th>Genre</th>
           
            </tr>
        </thead>
        <tbody>


                @foreach (var item in db.Images.ToList())
                {
                    <tr>
                        @*<td><img src="~/im2/@item.ImageUrl" width="100" height="100" /></td>*@
                        <td><img src="~/im2/@item" width="100" height="100" /></td>
                        <td>@item.Title</td>
                    <td>@item.ImageURL</td>
                    <td>@item.Description</td>
                    <td>@item.Genre</td>
                </tr>
                }
</tbody>
    </table>
}